package day2;

//继承特点：  只能继承父类的非 private 方法 和 属性
public class Animal extends Things {

    public String name;

    public int id;

    public Animal(String name) {
        this.name = name;
    }

    //default
    public void action() {
        System.out.println("自我介绍");
    }

    public void eat() {
        System.out.println("吃");
    }

    public void sleep() {
        System.out.println("睡");
    }
}
